package com.xuecheng.framework.domain.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by admin on 2018/2/7.
 */
@Data
@ToString
@Entity
@Table(name="category")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
//@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@ApiModel("Category分类表")
public class Category implements Serializable {

    @Id
    @GeneratedValue(generator = "jpa-assigned")
    @Column(length = 32)
    @ApiModelProperty(value = "主键id",name = "id")
    private String id;
    @ApiModelProperty(value = "分类名称",name = "name")
    private String name;
    @ApiModelProperty(value = "分类默认标签",name = "label")
    private String label;
    @ApiModelProperty(value = "父节点id",name = "parentid")
    private String parentid;
    @ApiModelProperty(value = "是否显示",name = "isshow")
    private String isshow;
    @ApiModelProperty(value = "排序字段",name = "orderby")
    private Integer orderby;
    @ApiModelProperty(value = "是否叶子",name = "isleaf")
    private String isleaf;

}
